package com.hotel.service;

import com.hotel.pojo.OrderInfoManager;
import com.hotel.pojo.RoomManager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderService {
    //添加入住信息
    Integer insertOrder(OrderInfoManager orderInfoManager);

    //先查到房间再更新
    RoomManager querRoomById(@Param("roomId") Integer roomId);

    //更新房间状态
    Integer updateRoomState(Integer roomId ,Integer roomState);

    //先查到客户再退房
    OrderInfoManager queryUser(@Param("userPhone") String userPhone);

    //客户退房
    Integer insertOutHotel(OrderInfoManager orderInfoManager);

    //展示客户信息
    List<OrderInfoManager> selectOrder();

    //显示客房状态信息
    List<RoomManager> selectRoomManager();

    //删除客户信息
    Integer deleteUserInfo(Long userPhone);

    //查询客户信息
    OrderInfoManager queryUserName(String userName);

}
